package com.gcstorage.tvdev.constants;

import com.blankj.utilcode.util.PathUtils;
import com.gcstorage.tvdev.util.SpUtils;

/**
 * created by Sanpark on 2020-09-04 14:38
 */
public interface GlobalConstants {


    String ROOT_DIR = PathUtils.getExternalStoragePath() + "/Gcstorage";//项目主目录
    String RECORD_ROOT_PATH = ROOT_DIR + "/Record";// 语音存放路径
    String DOWNLOAD_DIR = ROOT_DIR + "/Download";//其他下载地址
    String IMAGE_DIR = ROOT_DIR + "/Image";//其他下载地址
    String CROP_DIR = ROOT_DIR + "/Crop";//裁剪图片地址
    String CRASH_DIR = ROOT_DIR + "/Crash";//崩溃日志
    String RECORD_PATH = ROOT_DIR + "/Chat/Record";//聊天语音路径
    String VIDEO_PATH = ROOT_DIR + "/Chat/Video";//聊天视频路径
    String H5_APP_DOWNLOAD_DIR = ROOT_DIR + "/APP/" + SpUtils.getString(AppConstant.tenantId);//H5-app路径
    String VIDEO_SCREEN_SHOT = ROOT_DIR + "/Screenshot";
    String YFILE_DIR = ROOT_DIR + "/YFile";//云文件本地储存地址
    String YFILE_RECENT_DIR = YFILE_DIR + "/Recent";//云文件上传后保存在此目录下 最近
    String YFILE_FILE_DIR = YFILE_DIR + "/File";//云文件下载后保存的md5名字

    //根据fileId拼接文件下载地址
    String FILE_DOWNLOAD = AppConstant.getApiAddress() + "/oss/endpoint/downloadFile?fileId=";
    //根据视频文件的fileId拼接预览地址
    String VIDEO_PREVIEW = AppConstant.getApiAddress() + "/oss/endpoint/movePreview?fileId=";

}
